﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Fast.Extensions.Caching
{
    /// <summary>
    /// 分布式缓存Key标准化器参数
    /// </summary>
    public class DistributedCacheKeyNormalizeArgs
    {
        /// <summary>
        /// 缓存键
        /// </summary>
        public string Key { get; }

        /// <summary>
        /// 缓存名字
        /// </summary>
        public string CacheName { get; }

        /// <summary>
        /// 是否忽视多租户
        /// </summary>
        public bool IgnoreMultiTenancy { get; }

        public DistributedCacheKeyNormalizeArgs(
            string key,
            string cacheName,
            bool ignoreMultiTenancy)
        {
            Key = key;
            CacheName = cacheName;
            IgnoreMultiTenancy = ignoreMultiTenancy;
        }
    }
}
